/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package asa;

/**
 *
 * @author scriptoff
 */
public class ASAInstPrint extends ASAInst implements NeedBlocInterface{

    
    private ASAExpr expr1;
    private ASABloc bl;

    public ASAInstPrint(ASAExpr expr1) {
        this.expr1 = expr1;
    }
    
    
    
    @Override
    public void evalue() {
        System.out.print(expr1.evalue());
    }

    @Override
    public ASAExpr getExpr1() {
        return expr1;
    }

    @Override
    public ASAExpr getExpr2() {
        return null;
    }

    @Override
    public String getLabelExplorateur() {
        return "PRINT";
    }

    @Override
    public void setBl(ASABloc bl) {
        this.bl = bl;
        try {
            expr1.setBl(bl);
        } catch (ClassCastException ex) {
        }
    }
    
}
